
import { Injectable } from '@angular/core';
import { ViewModel, NgCommand } from '@farris/devkit';
import { Observable } from 'rxjs';

@Injectable()
export class Newobject2Xgn6ComponentViewmodel extends ViewModel {
    public bindingPath = '/newObject2s';
    // farrisDataGrid列集合定义 在对应component中赋值
    public newobject2_xgn6_dataGridColumns:any;
    // datGrid 列集合名称 用以bindData使用
    public dataGridColumnsName:string;

    public dom = {
  "newobject2-xgn6-dataGrid": {
    "type": "DataGrid",
    "resourceId": "newobject2-xgn6-dataGrid",
    "visible": {
      "useQuote": false,
      "isExpression": false,
      "value": true
    },
    "id": "newobject2-xgn6-dataGrid",
    "readonly": {
      "useQuote": false,
      "isExpression": false,
      "value": false
    },
    "fields": [
      {
        "type": "GridField",
        "resourceId": "zsbh_a2b6fe39_6e7x",
        "visible": {
          "useQuote": false,
          "isExpression": false,
          "value": true
        },
        "id": "zsbh_a2b6fe39_6e7x",
        "size": {
          "width": 120
        },
        "readonly": {
          "useQuote": false,
          "isExpression": false,
          "value": false
        },
        "binding": {
          "type": "Form",
          "path": "zsbh",
          "fullPath": "zsbh",
          "isExpression": false,
          "value": "zsbh"
        },
        "dataField": "zsbh",
        "dataType": "string",
        "multiLanguage": false,
        "caption": "住宿编号",
        "editor": {
          "type": "TextBox",
          "isTextArea": true,
          "resourceId": "zsbh_a2b6fe39_osuz",
          "defaultI18nValue": "住宿编号",
          "visible": {
            "useQuote": false,
            "isExpression": false,
            "value": true
          },
          "id": "zsbh_a2b6fe39_osuz",
          "size": {},
          "readonly": {
            "useQuote": false,
            "isExpression": false,
            "value": false
          },
          "binding": {
            "type": "Form",
            "path": "zsbh",
            "fullPath": "zsbh",
            "isExpression": false,
            "value": "zsbh"
          },
          "disable": false,
          "maxLength": 36,
          "isPassword": false,
          "enableViewPassword": false
        },
        "draggable": false,
        "frozen": "none",
        "sortable": true,
        "aggregate": {
          "type": "none",
          "formatter": {
            "type": "none"
          }
        },
        "groupAggregate": {
          "type": "none",
          "formatter": {
            "type": "none"
          }
        },
        "linkedLabelEnabled": false,
        "updateOn": "blur",
        "formatter": {
          "type": "none"
        }
      },
      {
        "type": "GridField",
        "resourceId": "note2_5c227d8f_fb5g",
        "visible": {
          "useQuote": false,
          "isExpression": false,
          "value": true
        },
        "id": "note2_5c227d8f_fb5g",
        "size": {
          "width": 120
        },
        "readonly": {
          "useQuote": false,
          "isExpression": false,
          "value": false
        },
        "binding": {
          "type": "Form",
          "path": "note2",
          "fullPath": "note2",
          "isExpression": false,
          "value": "note2"
        },
        "dataField": "note2",
        "dataType": "string",
        "multiLanguage": false,
        "caption": "住宿相关备注",
        "editor": {
          "type": "TextBox",
          "isTextArea": true,
          "resourceId": "note2_5c227d8f_ehb5",
          "defaultI18nValue": "住宿相关备注",
          "visible": {
            "useQuote": false,
            "isExpression": false,
            "value": true
          },
          "id": "note2_5c227d8f_ehb5",
          "size": {},
          "readonly": {
            "useQuote": false,
            "isExpression": false,
            "value": false
          },
          "binding": {
            "type": "Form",
            "path": "note2",
            "fullPath": "note2",
            "isExpression": false,
            "value": "note2"
          },
          "disable": false,
          "maxLength": 36,
          "isPassword": false,
          "enableViewPassword": false
        },
        "draggable": false,
        "frozen": "none",
        "sortable": true,
        "aggregate": {
          "type": "none",
          "formatter": {
            "type": "none"
          }
        },
        "groupAggregate": {
          "type": "none",
          "formatter": {
            "type": "none"
          }
        },
        "linkedLabelEnabled": false,
        "updateOn": "blur",
        "formatter": {
          "type": "none"
        }
      },
      {
        "type": "GridField",
        "resourceId": "cjr2_cd5dffd9_k5cq",
        "visible": {
          "useQuote": false,
          "isExpression": false,
          "value": true
        },
        "id": "cjr2_cd5dffd9_k5cq",
        "size": {
          "width": 120
        },
        "readonly": {
          "useQuote": false,
          "isExpression": false,
          "value": false
        },
        "binding": {
          "type": "Form",
          "path": "cjr2",
          "fullPath": "cjr2",
          "isExpression": false,
          "value": "cjr2"
        },
        "dataField": "cjr2",
        "dataType": "string",
        "multiLanguage": false,
        "caption": "创建人",
        "editor": {
          "type": "TextBox",
          "isTextArea": true,
          "resourceId": "cjr2_cd5dffd9_hxez",
          "defaultI18nValue": "创建人",
          "visible": {
            "useQuote": false,
            "isExpression": false,
            "value": true
          },
          "id": "cjr2_cd5dffd9_hxez",
          "size": {},
          "readonly": {
            "useQuote": false,
            "isExpression": false,
            "value": false
          },
          "binding": {
            "type": "Form",
            "path": "cjr2",
            "fullPath": "cjr2",
            "isExpression": false,
            "value": "cjr2"
          },
          "disable": false,
          "maxLength": 36,
          "isPassword": false,
          "enableViewPassword": false
        },
        "draggable": false,
        "frozen": "none",
        "sortable": true,
        "aggregate": {
          "type": "none",
          "formatter": {
            "type": "none"
          }
        },
        "groupAggregate": {
          "type": "none",
          "formatter": {
            "type": "none"
          }
        },
        "linkedLabelEnabled": false,
        "updateOn": "blur",
        "formatter": {
          "type": "none"
        }
      },
      {
        "type": "GridField",
        "resourceId": "cjsj_3685c6c0_geuh",
        "visible": {
          "useQuote": false,
          "isExpression": false,
          "value": true
        },
        "id": "cjsj_3685c6c0_geuh",
        "size": {
          "width": 120
        },
        "readonly": {
          "useQuote": false,
          "isExpression": false,
          "value": false
        },
        "binding": {
          "type": "Form",
          "path": "cjsj",
          "fullPath": "cjsj",
          "isExpression": false,
          "value": "cjsj"
        },
        "dataField": "cjsj",
        "dataType": "string",
        "multiLanguage": false,
        "caption": "创建时间",
        "editor": {
          "type": "TextBox",
          "isTextArea": true,
          "resourceId": "cjsj_3685c6c0_esur",
          "defaultI18nValue": "创建时间",
          "visible": {
            "useQuote": false,
            "isExpression": false,
            "value": true
          },
          "id": "cjsj_3685c6c0_esur",
          "size": {},
          "readonly": {
            "useQuote": false,
            "isExpression": false,
            "value": false
          },
          "binding": {
            "type": "Form",
            "path": "cjsj",
            "fullPath": "cjsj",
            "isExpression": false,
            "value": "cjsj"
          },
          "disable": false,
          "maxLength": 36,
          "isPassword": false,
          "enableViewPassword": false
        },
        "draggable": false,
        "frozen": "none",
        "sortable": true,
        "aggregate": {
          "type": "none",
          "formatter": {
            "type": "none"
          }
        },
        "groupAggregate": {
          "type": "none",
          "formatter": {
            "type": "none"
          }
        },
        "linkedLabelEnabled": false,
        "updateOn": "blur",
        "formatter": {
          "type": "none"
        }
      },
      {
        "type": "GridField",
        "resourceId": "kssj2_fd32f159_d6me",
        "visible": {
          "useQuote": false,
          "isExpression": false,
          "value": true
        },
        "id": "kssj2_fd32f159_d6me",
        "size": {
          "width": 120
        },
        "readonly": {
          "useQuote": false,
          "isExpression": false,
          "value": false
        },
        "binding": {
          "type": "Form",
          "path": "kssj2",
          "fullPath": "kssj2",
          "isExpression": false,
          "value": "kssj2"
        },
        "dataField": "kssj2",
        "dataType": "date",
        "multiLanguage": false,
        "caption": "开始日期",
        "editor": {
          "type": "EditableField",
          "disable": false,
          "editable": true,
          "dateRange": false,
          "showTime": false,
          "title": "开始日期",
          "showType": 1,
          "locale": "zh-cn",
          "dateFormat": "yyyy-MM-dd",
          "format": "'yyyy-MM-dd'",
          "placeHolder": "",
          "linkedLabelEnabled": false,
          "disableDates": [],
          "returnType": "Date",
          "useDefault": false,
          "showWeekNumbers": false,
          "dateRangeDatesDelimiter": "~",
          "shortcuts": [],
          "holdPlace": false,
          "returnFormat": "yyyy-MM-dd",
          "titleWidth": null,
          "localization": false,
          "isTextArea": true,
          "resourceId": "kssj2_fd32f159_oucw",
          "defaultI18nValue": "开始日期",
          "visible": {
            "useQuote": false,
            "isExpression": false,
            "value": true
          },
          "id": "kssj2_fd32f159_oucw",
          "size": {},
          "readonly": {
            "useQuote": false,
            "isExpression": false,
            "value": false
          },
          "binding": {
            "type": "Form",
            "path": "kssj2",
            "fullPath": "kssj2",
            "isExpression": false,
            "value": "kssj2"
          }
        },
        "draggable": false,
        "frozen": "none",
        "sortable": true,
        "aggregate": {
          "type": "none",
          "formatter": {
            "type": "none"
          }
        },
        "groupAggregate": {
          "type": "none",
          "formatter": {
            "type": "none"
          }
        },
        "linkedLabelEnabled": false,
        "updateOn": "blur",
        "formatter": {
          "type": "date",
          "dateFormat": "yyyy-MM-dd"
        }
      },
      {
        "type": "GridField",
        "resourceId": "jsrq2_b23d5af3_v5o6",
        "visible": {
          "useQuote": false,
          "isExpression": false,
          "value": true
        },
        "id": "jsrq2_b23d5af3_v5o6",
        "size": {
          "width": 120
        },
        "readonly": {
          "useQuote": false,
          "isExpression": false,
          "value": false
        },
        "binding": {
          "type": "Form",
          "path": "jsrq2",
          "fullPath": "jsrq2",
          "isExpression": false,
          "value": "jsrq2"
        },
        "dataField": "jsrq2",
        "dataType": "string",
        "multiLanguage": false,
        "caption": "结束日期",
        "editor": {
          "type": "TextBox",
          "isTextArea": true,
          "resourceId": "jsrq2_b23d5af3_xyv3",
          "defaultI18nValue": "结束日期",
          "visible": {
            "useQuote": false,
            "isExpression": false,
            "value": true
          },
          "id": "jsrq2_b23d5af3_xyv3",
          "size": {},
          "readonly": {
            "useQuote": false,
            "isExpression": false,
            "value": false
          },
          "binding": {
            "type": "Form",
            "path": "jsrq2",
            "fullPath": "jsrq2",
            "isExpression": false,
            "value": "jsrq2"
          },
          "disable": false,
          "maxLength": 36,
          "isPassword": false,
          "enableViewPassword": false
        },
        "draggable": false,
        "frozen": "none",
        "sortable": true,
        "aggregate": {
          "type": "none",
          "formatter": {
            "type": "none"
          }
        },
        "groupAggregate": {
          "type": "none",
          "formatter": {
            "type": "none"
          }
        },
        "linkedLabelEnabled": false,
        "updateOn": "blur",
        "formatter": {
          "type": "none"
        }
      },
      {
        "type": "GridField",
        "resourceId": "zsje_4a39e50c_4wua",
        "visible": {
          "useQuote": false,
          "isExpression": false,
          "value": true
        },
        "id": "zsje_4a39e50c_4wua",
        "size": {
          "width": 120
        },
        "readonly": {
          "useQuote": false,
          "isExpression": false,
          "value": false
        },
        "binding": {
          "type": "Form",
          "path": "zsje",
          "fullPath": "zsje",
          "isExpression": false,
          "value": "zsje"
        },
        "dataField": "zsje",
        "dataType": "string",
        "multiLanguage": false,
        "caption": "住宿总费用",
        "editor": {
          "type": "TextBox",
          "isTextArea": true,
          "resourceId": "zsje_4a39e50c_wnlx",
          "defaultI18nValue": "住宿总费用",
          "visible": {
            "useQuote": false,
            "isExpression": false,
            "value": true
          },
          "id": "zsje_4a39e50c_wnlx",
          "size": {},
          "readonly": {
            "useQuote": false,
            "isExpression": false,
            "value": false
          },
          "binding": {
            "type": "Form",
            "path": "zsje",
            "fullPath": "zsje",
            "isExpression": false,
            "value": "zsje"
          },
          "disable": false,
          "maxLength": 36,
          "isPassword": false,
          "enableViewPassword": false
        },
        "draggable": false,
        "frozen": "none",
        "sortable": true,
        "aggregate": {
          "type": "none",
          "formatter": {
            "type": "none"
          }
        },
        "groupAggregate": {
          "type": "none",
          "formatter": {
            "type": "none"
          }
        },
        "linkedLabelEnabled": false,
        "updateOn": "blur",
        "formatter": {
          "type": "none"
        }
      },
      {
        "type": "GridField",
        "resourceId": "zsts_3657f4e0_z7yv",
        "visible": {
          "useQuote": false,
          "isExpression": false,
          "value": true
        },
        "id": "zsts_3657f4e0_z7yv",
        "size": {
          "width": 120
        },
        "readonly": {
          "useQuote": false,
          "isExpression": false,
          "value": false
        },
        "binding": {
          "type": "Form",
          "path": "zsts",
          "fullPath": "zsts",
          "isExpression": false,
          "value": "zsts"
        },
        "dataField": "zsts",
        "dataType": "string",
        "multiLanguage": false,
        "caption": "住宿天数",
        "editor": {
          "type": "TextBox",
          "isTextArea": true,
          "resourceId": "zsts_3657f4e0_xpvv",
          "defaultI18nValue": "住宿天数",
          "visible": {
            "useQuote": false,
            "isExpression": false,
            "value": true
          },
          "id": "zsts_3657f4e0_xpvv",
          "size": {},
          "readonly": {
            "useQuote": false,
            "isExpression": false,
            "value": false
          },
          "binding": {
            "type": "Form",
            "path": "zsts",
            "fullPath": "zsts",
            "isExpression": false,
            "value": "zsts"
          },
          "disable": false,
          "maxLength": 36,
          "isPassword": false,
          "enableViewPassword": false
        },
        "draggable": false,
        "frozen": "none",
        "sortable": true,
        "aggregate": {
          "type": "none",
          "formatter": {
            "type": "none"
          }
        },
        "groupAggregate": {
          "type": "none",
          "formatter": {
            "type": "none"
          }
        },
        "linkedLabelEnabled": false,
        "updateOn": "blur",
        "formatter": {
          "type": "none"
        }
      },
      {
        "type": "GridField",
        "resourceId": "zsdj_90bd1927_5jjr",
        "visible": {
          "useQuote": false,
          "isExpression": false,
          "value": true
        },
        "id": "zsdj_90bd1927_5jjr",
        "size": {
          "width": 120
        },
        "readonly": {
          "useQuote": false,
          "isExpression": false,
          "value": false
        },
        "binding": {
          "type": "Form",
          "path": "zsdj",
          "fullPath": "zsdj",
          "isExpression": false,
          "value": "zsdj"
        },
        "dataField": "zsdj",
        "dataType": "string",
        "multiLanguage": false,
        "caption": "住宿单价",
        "editor": {
          "type": "TextBox",
          "isTextArea": true,
          "resourceId": "zsdj_90bd1927_9spv",
          "defaultI18nValue": "住宿单价",
          "visible": {
            "useQuote": false,
            "isExpression": false,
            "value": true
          },
          "id": "zsdj_90bd1927_9spv",
          "size": {},
          "readonly": {
            "useQuote": false,
            "isExpression": false,
            "value": false
          },
          "binding": {
            "type": "Form",
            "path": "zsdj",
            "fullPath": "zsdj",
            "isExpression": false,
            "value": "zsdj"
          },
          "disable": false,
          "maxLength": 36,
          "isPassword": false,
          "enableViewPassword": false
        },
        "draggable": false,
        "frozen": "none",
        "sortable": true,
        "aggregate": {
          "type": "none",
          "formatter": {
            "type": "none"
          }
        },
        "groupAggregate": {
          "type": "none",
          "formatter": {
            "type": "none"
          }
        },
        "linkedLabelEnabled": false,
        "updateOn": "blur",
        "formatter": {
          "type": "none"
        }
      },
      {
        "type": "GridField",
        "resourceId": "sfybt2_e60cd55d_i96e",
        "visible": {
          "useQuote": false,
          "isExpression": false,
          "value": true
        },
        "id": "sfybt2_e60cd55d_i96e",
        "size": {
          "width": 120
        },
        "readonly": {
          "useQuote": false,
          "isExpression": false,
          "value": false
        },
        "binding": {
          "type": "Form",
          "path": "sfybt2",
          "fullPath": "sfybt2",
          "isExpression": false,
          "value": "sfybt2"
        },
        "dataField": "sfybt2",
        "dataType": "string",
        "multiLanguage": false,
        "caption": "是否有补贴",
        "editor": {
          "type": "TextBox",
          "isTextArea": true,
          "resourceId": "sfybt2_e60cd55d_4aev",
          "defaultI18nValue": "是否有补贴",
          "visible": {
            "useQuote": false,
            "isExpression": false,
            "value": true
          },
          "id": "sfybt2_e60cd55d_4aev",
          "size": {},
          "readonly": {
            "useQuote": false,
            "isExpression": false,
            "value": false
          },
          "binding": {
            "type": "Form",
            "path": "sfybt2",
            "fullPath": "sfybt2",
            "isExpression": false,
            "value": "sfybt2"
          },
          "disable": false,
          "maxLength": 36,
          "isPassword": false,
          "enableViewPassword": false
        },
        "draggable": false,
        "frozen": "none",
        "sortable": true,
        "aggregate": {
          "type": "none",
          "formatter": {
            "type": "none"
          }
        },
        "groupAggregate": {
          "type": "none",
          "formatter": {
            "type": "none"
          }
        },
        "linkedLabelEnabled": false,
        "updateOn": "blur",
        "formatter": {
          "type": "none"
        }
      },
      {
        "type": "GridField",
        "resourceId": "btje2_e4cc080f_88if",
        "visible": {
          "useQuote": false,
          "isExpression": false,
          "value": true
        },
        "id": "btje2_e4cc080f_88if",
        "size": {
          "width": 120
        },
        "readonly": {
          "useQuote": false,
          "isExpression": false,
          "value": false
        },
        "binding": {
          "type": "Form",
          "path": "btje2",
          "fullPath": "btje2",
          "isExpression": false,
          "value": "btje2"
        },
        "dataField": "btje2",
        "dataType": "string",
        "multiLanguage": false,
        "caption": "补贴金额",
        "editor": {
          "type": "TextBox",
          "isTextArea": true,
          "resourceId": "btje2_e4cc080f_hfwy",
          "defaultI18nValue": "补贴金额",
          "visible": {
            "useQuote": false,
            "isExpression": false,
            "value": true
          },
          "id": "btje2_e4cc080f_hfwy",
          "size": {},
          "readonly": {
            "useQuote": false,
            "isExpression": false,
            "value": false
          },
          "binding": {
            "type": "Form",
            "path": "btje2",
            "fullPath": "btje2",
            "isExpression": false,
            "value": "btje2"
          },
          "disable": false,
          "maxLength": 36,
          "isPassword": false,
          "enableViewPassword": false
        },
        "draggable": false,
        "frozen": "none",
        "sortable": true,
        "aggregate": {
          "type": "none",
          "formatter": {
            "type": "none"
          }
        },
        "groupAggregate": {
          "type": "none",
          "formatter": {
            "type": "none"
          }
        },
        "linkedLabelEnabled": false,
        "updateOn": "blur",
        "formatter": {
          "type": "none"
        }
      }
    ],
    "multiSelect": false,
    "showLineNumber": false,
    "lineNumberTitle": "#",
    "groupTotalText": "Total",
    "filterable": false,
    "groupable": false,
    "rowClass": ""
  }
};
    @NgCommand({
        name: 'newobject2xgn6componentviewmodelAddItem1',
        params: {
        }
    })
    public newobject2xgn6componentviewmodelAddItem1(commandParam?: any): Observable<any> { return; }

    @NgCommand({
        name: 'newobject2xgn6componentviewmodelRemoveItem1',
        params: {
            id: '{DATA~/#{newobject2-xgn6-component}/newObject2s/id}'
        },
        paramDescriptions: {
            id: { type: 'string' }
        }
    })
    public newobject2xgn6componentviewmodelRemoveItem1(commandParam?: any): Observable<any> { return; }

}